package com.ydw;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

import java.util.function.Consumer;

/**
 * @author Yangdw
 * @date 2025-08-30
 * @description:
 */
@SpringBootApplication
public class RocketMQApplication {
    public static void main(String[] args) {
        SpringApplication.run(RocketMQApplication.class, args);
    }

    @Bean
    public Consumer<String> input() {
        return message -> System.out.println("Received: " + message);
    }
}
